function stName = SortName(ogName)
% given unsorted image file name, sort is according to the postfix number
imageNames = {ogName.name}';
imageStrings = regexp([imageNames{:}],'(\d*)','match');
imageNumbers = str2double(imageStrings);
[~,sortedIndices] = sort(imageNumbers);
stName = imageNames(sortedIndices);